package com.ruan.config;

import com.ruan.entity.Orders;
import lombok.Data;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @ClassName:AlipayConfig
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/7/4 16:37
 **/
@Configuration
@Data
@Component
public class AlipayConfig {

    /**
     * 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
     */
    private String appId = "9021000122697947";

    /**
     * 商户私钥，您的PKCS8格式RSA2私钥
     */
    private String privateKey = "MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDUIjINLJp/8K8yLN9ennVBdR9Sx5nW6GGvgog/2EUTFopOZNM1nDvXRgYglHSYs/olubOlxzy54VXuaxI5YAsGQn7t+kxAWMQQuXWrSp73ofMCpZX0Oz3GopClRoeBsmbWo8sD/HLRNu+izOlBvrcRmbaVXds/nMWCYasS8cEAxaI2QeidiJX0x44JhF8adGhdmPxQ89b0M8FF/l2HkNfxUZQjqFudmfUZrIuuCtTXUuwfbAHTyGpGtEsgT5JEm1OKUe5BP4wWed5HHtq1SXa6uPDPyaZxJyjWHyZgyUxQkUuPNdlZcxlOSaXLkmkUL2Sk4xsHAn+51I3ikwjLfZ0lAgMBAAECggEAbwvzjYfy3NSesbJhv8NNeFWabxgDxUdik6DOODW7exGKlx0an27IuJl0baupGaLlaMg8baTNejSmaidso9JOExnOHj+vmOOex25+VYu7icAiWRlbVT2JyiihdZNlLhS41tVpWg3WAQU0DtIbrQnsBW+k763xLuyfS/BawJEDSqY1pNQYPgtiExormrnSxxxy1aMn+wpaiQ8438JVzGRGhh2Mlt6KlH5Uf85gBtMVudKz0VI1HT/ikqsJ9a908PHxC4NMgd1Lv1mymzhNiw61Ejo8ySWBkYar4WOL4LXvU6okDXWZxZTjdUyC34bKHy29Qd7UoOIdbhZosNP7PrE84QKBgQD+hAj1WTdThXj/pcu8v15l1Yy/4PcKQrGBKIGg0L29fnBqBXgTZ5GfjNYz7uJ9eLAMeWP3adZeDw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j8UPPW9DPBRf5dh5DX8VGUI6hbnZn1GayLrgrU11LsH2wB08hqRrRLIE+SRJtTilHuQT+MFnneRx7atUl2urjwz8mmcSco1h8mYMlMUJFLjzXZWXMZTkmly5JpFC9kpOMbBwJ/udSN4pMIy32dJQIDAQAB";

    /**
     * 服务器异步通知页面路径需http://格式的完整路径，不能加?id=123这类自定义参数
     */
    private String notifyUrl = "http://oj44ngtsx6rt.ngrok.xiaomiqiu123.top";

    /**
     * 页面跳转同步通知页面路径 需http://格式的完整路径.
     * 支付完成后返回的地址
     */
    private String returnUrl = "http://123.249.4.244:8080/paysuccess";

    /**
     * 签名方式
     */
    private String signType = "RSA2";

    /**
     * 字符编码格式
     */
    private String charset = "utf-8";

    /**
     * 支付宝网关
     */
    private String gatewayUrl = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";

    /**
     * 支付宝网关
     */
    private String logPath = "C:\\";

}

